package com.itheima.dao;

import com.itheima.pojo.CheckGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

@Mapper
public interface CheckGroupMapper {

    /**
     * 根据套餐id查询检查组集合
     * @param setmealId
     * @return
     */
    @Select("select * from t_checkgroup where id in (select checkgroup_id from t_setmeal_checkgroup where setmeal_id =#{setmealId})")
    ArrayList<CheckGroup> findBySetmealId(Integer setmealId);
}
